const express = require('express');
const router = express.Router();
const Blog = require('../../mongoModuels/rear/blog');

router
.get('/role', (req, res) => {
    Blog.role.find({}, (err, data) => {
        if(err) {
            res.json({
                status: 0,
                message: err
            })
        } else {
            res.json({
                status: 1,
                message: '请求成功',
                data
            })
        }
    })
})
//获取角色
module.exports = router;